package org.example.kunkun_filter.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "wechat")
public class WechatConfig {
    private String appid;
    private String secret;
    private Api api = new Api();

    // getters and setters

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public Api getApi() {
        return api;
    }

    public void setApi(Api api) {
        this.api = api;
    }

    public static class Api {
        private String jscode2session;

        // getters and setters

        public String getJscode2session() {
            return jscode2session;
        }

        public void setJscode2session(String jscode2session) {
            this.jscode2session = jscode2session;
        }
    }
}